package cn.flyboy.service;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import cn.flyboy.entity.Answer;
import cn.flyboy.entity.Exam;
import cn.flyboy.entity.Student;
import cn.flyboy.entity.the_exam;
import org.springframework.web.multipart.MultipartFile;

public interface ExamService {
    public int insExam(Exam exam);

    public List<Exam> getAllTeaExam(String teaID);

    public List<Exam> selAllExam();

    public List<the_exam> getAllExamFromStu(String stuId);

    public int updExam(String e_oldname, Exam exam);

    public int updStopExam(String name);

    public int updClearExam(String name);

    public List<Exam> selStartExam();

    public boolean savePager(MultipartFile multipartFile, HttpServletRequest req, HttpSession session) throws IOException;

    public boolean saveAnswer(MultipartFile multipartFile, HttpServletRequest req, HttpSession session, String stu_id, String stu_exam);

    public int examStart(String e_name);

    public String selFileByName(String e_name, String e_teacher);

    public String selectStartExamTeaName(String e_name);
}
